﻿using FunArts.EasyDevOps.Shared.Models.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunArts.EasyDevOps.Shared.Models.SshClient.Command
{
    /// <summary>
    /// 创建目录命令
    /// </summary>
    public class CreateDirectoryCommand : ILinuxCommand
    {
        /// <summary>
        /// 目录路径
        /// </summary>
        public string Directory { get; set; } 

        public CreateDirectoryCommand(string directory)
        {
            Directory = directory;
        }

        public string BuildCommand(SystemVersionTypeEnum systemVersionType)
        {
            return $"mkdir -p {Directory}";
        }
    }
}
